package com.juyu.miliao.scheduler.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.ErrorHandler;

public class RabbitMQExceptionHandler implements ErrorHandler{
	private final Logger rabbitMQErrorLogger = LoggerFactory.getLogger("rabbitMQError");

	@Override
	public void handleError(Throwable t) {
		rabbitMQErrorLogger.error("rabbitmq 错误：error={}", t);
	}

}
